package com.ruoyi.appointment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约
对象 bus_appointment
 * 
 * @author ruoyi
 * @date 2023-09-14
 */
public class BusAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键唯一标识 */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointTime;

    /** 到店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到店时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivalTima;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String licensePlate;

    /** 汽车类型 */
    @Excel(name = "汽车类型")
    private String carType;

    /** 服务类型 0:维修 1:保养 */
    @Excel(name = "服务类型 0:维修 1:保养")
    private Long serviceType;

    /** 备注 */
    @Excel(name = "备注")
    private String info;

    /** 状态 0：预约中 1：已到店 2：用户取消 3：超时取消 4：已结算 5:已支付 */
    @Excel(name = "状态 0：预约中 1：已到店 2：用户取消 3：超时取消 4：已结算 5:已支付")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAppointTime(Date appointTime) 
    {
        this.appointTime = appointTime;
    }

    public Date getAppointTime() 
    {
        return appointTime;
    }
    public void setArrivalTima(Date arrivalTima) 
    {
        this.arrivalTima = arrivalTima;
    }

    public Date getArrivalTima() 
    {
        return arrivalTima;
    }
    public void setLicensePlate(String licensePlate) 
    {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() 
    {
        return licensePlate;
    }
    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }
    public void setServiceType(Long serviceType) 
    {
        this.serviceType = serviceType;
    }

    public Long getServiceType() 
    {
        return serviceType;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("appointTime", getAppointTime())
            .append("arrivalTima", getArrivalTima())
            .append("licensePlate", getLicensePlate())
            .append("carType", getCarType())
            .append("serviceType", getServiceType())
            .append("createTime", getCreateTime())
            .append("info", getInfo())
            .append("status", getStatus())
            .toString();
    }
}
